using IQIGame.Onigao.GamePlay;

namespace IQIGame.Onigao.Logic
{
    /// <summary>
    /// 改变天气
    /// 参数组1: 1.天气id(0表示全局，局部id参考编辑器功能)，2.天气类型(隐藏填0，显示的数值待定)
    /// </summary>
    public class ExecChangeWeather : BaseServiceExecution
    {
        public override void Execute(LevelRegion region, LevelPlayer player)
        {
            var config = _config as ExecParamChangeWeather;

            region.SetWeather(config.id, config.type);
        }
    }
}
